package org.jinxing.utils;

import org.jinxing.model.ActionsInfo;
import org.jinxing.model.BooksCase;
import org.jinxing.model.BooksClassfy;
import org.jinxing.model.BooksInfo;
import org.jinxing.model.BooksPenalty;
import org.jinxing.model.RolesInfo;
import org.jinxing.model.UsersInfo;

public class ModelUtils {
	public static UsersInfo usersFromJson(String json){
		return JsonUtils.objectFromJson(json, UsersInfo.class);
	}
	
	public static BooksInfo booksFromJson(String json){
		return JsonUtils.objectFromJson(json, BooksInfo.class);
	}
	
	public static RolesInfo rolesFromJson(String json){
		return JsonUtils.objectFromJson(json, RolesInfo.class);
	}
	
	public static ActionsInfo actionsFromJson(String json){
		return JsonUtils.objectFromJson(json, ActionsInfo.class);
	}
	
	public static BooksClassfy booksClassfyFromJson(String json){
		return JsonUtils.objectFromJson(json, BooksClassfy.class);
	}
	
	public static BooksCase booksCasefyFromJson(String json){
		return JsonUtils.objectFromJson(json, BooksCase.class);
	}
	
	public static BooksPenalty booksPenaltyFromJson(String json){
		return JsonUtils.objectFromJson(json, BooksPenalty.class);
	}
}
